﻿@using QuestionsAnswers.UI.Models
@model QuestionsAnswers.UI.Models.Question
@{
    ViewBag.Title = "Create";
    List<CourseAssignViewModel> list = @ViewBag.Courses;
 
    
}
<h2>
    Create</h2>
      
  
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Question</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.Text)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Text,10,70,null)
            @Html.ValidationMessageFor(model => model.Text)
        </div>

          <div class="editor-label">
	            @Html.Label("Assign to Course")
	        </div>
	        <div class="editor-field">

        @Html.Partial("CourseAssignPartial",list)

	            
	        </div>

             <div class="editor-label">
            Enter Tags
        </div>
        <div class="editor-field">
            @Html.TextBox("ListofT")
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
